<?php
/*Mostafa Shalkami (C) 2010 CC Share-Alike 3.0 Some Rights Reserved
*shalkamm@gmail.com
*
*This work is licensed under the Creative Commons Attribution-Share Alike 3.0 United States License.
*To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/us/ or send a 
*letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
*
*/

defined( '_SOBI2_' ) or die( 'Restricted access Dies here' );

	if(defined("_SOBI_ADM_PATH")) {
		$config =& adminConfig::getInstance();
		if(sobi2Config::import("plugins|nestedsearch|nestedsearch.class") && sobi2Config::import("plugins|nestedsearch|admin.nestedsearch.class", "adm")) {
			
			
			$config->S2_plugins[$plugin->name_id] = new nestedsearch_adm();
		}
		else {
			trigger_error("Cannot import class definition files for nested search plugin", E_USER_WARNING);
		}
	}
?>
